<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div id="content-top">
	<div class="content-top-left">
	<?php
	if($pageChunksTopLeft){
		echo $pageChunksTopLeft[0]->body;
	}else{
	?>
		<p>
		<?php echo lang('stoepje_winner_frontend_content_top_text1')?>
		</p>
		<p>
		<?php echo lang('stoepje_winner_frontend_content_top_text2')?>
		</p>
		<p>
		<?php echo lang('stoepje_winner_frontend_content_top_text3')?>
		</p>
		<p>
		<?php echo lang('stoepje_winner_frontend_content_top_text4')?>
		</p>
		<br/>
		<p>
		<?php echo lang('stoepje_winner_frontend_content_top_text5')?>
		</p>
	<?php
	}
	?>
	</div>
	<div class="content-top-right">
		<h2>
		<?php
		if($pageTopRight){
			echo $pageTopRight->title;
		}else{
			echo lang('stoepje_winner_frontend_content_top_right_header_label');
		}
		?>
		</h2>
		<?php
		if($pageChunksTopRight){
			echo $pageChunksTopRight[0]->body;
		}else{
		?>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text1_label')?>
		</p>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text2_label')?>
		</p>
		<p>
			<?php echo lang('stoepje_winner_frontend_content_top_right_text3_label')?>
		</p>
		<?php
		}
		?>
		<?php echo form_open(site_url().'voucher/submit', 'class="crud" id="stoepje_voucher_form"'); ?>
		<div id="stoepje-voucher-form-wrapper">
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_salutation_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_radio('salutation', 'man', TRUE, 'id="salutation"')?> <label for="saluatation"><?php echo lang('stoepje_winner_salutation_man_title')?></label>
					<?php echo form_radio('salutation', 'female', FALSE, 'id="salutation"')?> <label for="saluatation"><?php echo lang('stoepje_winner_salutation_female_title')?></label>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_first_name_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('first_name', '', 'id="first_name"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_last_name_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('last_name', '', 'id="last_name"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_email_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('email', '', 'id="email"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label><?php echo lang('stoepje_winner_code_title') ?><span>*</span></label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php echo form_input('code', '', 'id="code"')?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<div class="stoepje-voucher-form-item-left">
					<label>&nbsp;</label>
				</div>
				<div class="stoepje-voucher-form-item-right">
					<?php
					$vals = array(
					    'word' => $captchaWord,
					    'img_path' => 'uploads/default/captcha/',
					    'img_url' => site_url().'uploads/default/captcha/',
					    'font_path' => 'uploads/default/captcha/fonts/TimesNewRomanBold.ttf',
					    'img_width' => '150',
					    'img_height' => '30',
					    'expiration' => 7200
					    );
					$timeLIMIT = 720;
					$captcha = array( 'captcha_exprise_time'=>time() + $timeLIMIT , 'captcha_content'=>$captchaWord );
					$ci = &get_instance();
					$ci->session->set_userdata($captcha);
					$cap = create_captcha($vals);
					?>
					<div id="captcha-content"><?php echo $cap['image'];?></div><div id="refresh-captcha"><img src="<?php site_url()?>medias/images/refresh-bt.png"/></div>
					<div class="clear"></div>
					<?php echo form_input('captcha', '', 'id="captcha"')?>
					
				</div>
				<div class="clear"></div>
			</div>
			<div class="stoepje-voucher-form-item">
				<?php echo form_submit('submit', lang('stoepje_winner_submit_title'), 'id="submit"')?>
			</div>
			<div class="stoepje-voucher-form-item">
				<?php echo form_checkbox('accept', 1, FALSE, 'id="accept"')?><label id="accept-label" for="accept"><?php echo lang('stoepje_winner_accept_title')?></label>
				<p><?php echo lang('stoepje_winner_required_marker')?></p>
			</div>
			
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="content-bottom">
	<div class="content-bottom-box1">
		<h2>
		<?php
		if($pageBottomBox1){
			echo $pageBottomBox1->title;
		}else{
			echo lang('stoepje_winner_frontend_content_bottom_box1_header');
		}
		?>
		</h2>
		<?php
		if($pageChunksBottomBox1){
			echo $pageChunksBottomBox1[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box1_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="content-bottom-box2">
		<h2>
		<?php
		if($pageBottomBox2){
			echo $pageBottomBox2->title;
		}else{
			echo lang('stoepje_winner_frontend_content_bottom_box2_header');
		}
		?>
		</h2>
		<?php
		if($pageChunksBottomBox2){
			echo $pageChunksBottomBox2[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box2_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="content-bottom-box3">
		<h2>
		<?php
		if($pageBottomBox3){
			echo $pageBottomBox3->title;
		}else{
			echo lang('stoepje_winner_frontend_content_bottom_box3_header');
		}
		?>
		</h2>
		<?php
		if($pageChunksBottomBox3){
			echo $pageChunksBottomBox3[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box3_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="content-bottom-box4">
		<h2>
		<?php
		if($pageBottomBox4){
			echo $pageBottomBox4->title;
		}else{
			echo lang('stoepje_winner_frontend_content_bottom_box4_header');
		}
		?>
		</h2>
		<?php
		if($pageChunksBottomBox4){
			echo $pageChunksBottomBox4[0]->body;
		}else{
		?>
		<p><?php echo lang('stoepje_winner_frontend_content_bottom_box4_text')?></p>
		<?php
		}
		?>
	</div>
	<div class="clear"></div>
</div>
